import request from '@/router/axios'

// 查询入驻列表
export function getSettleList(type, query) {
  const url = type === '1' ? '/app/enterCompany/page' : '/app/operate/mall/user/page'
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

// 查询入驻详情
export function getSettleDetail(url, query) {
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

// 入驻审批
export function settleApproval(query) {
  return request({
    url: '/app/per/approval',
    method: 'post',
    data: query
  })
}

// 商城用户详情
export function getMallUserDetail(id) {
  return request({
    url: '/app/operate/mall/user/detail/' + id,
    method: 'get'
  })
}

// 商城用户审批
export function pcUserApproval(query) {
  return request({
    url: '/app/operate/mall/user/audit',
    method: 'post',
    data: query
  })
}

// 删除商城用户
export function deletePcUserInfo(userId) {
  return request({
    url: '/app/operate/mall/user/delete/' + userId,
    method: 'post'
  })
}

